Skip to content

Instantly share code, notes, and snippets.

@anopse
anopse / w3c.py
Created October 7, 2026 22:28
Vibe coded warcraft 3 campaign save file version fix, use at your own risk
import struct, zlib, sys, re
BLK = 0x100000
DEFAULT_WINDOW = 0x104 # end of the map-identity header: first per-save field seen in the aba3/aba4 diffs
DEFAULT_EXTRA = ['0x10e:4'] # stable 4-byte field beyond that window (offset:length)
fold = lambda x: (x ^ x >> 16) & 0xFFFF
def chk(n, u, comp):
return fold(zlib.crc32(comp)) << 16 | fold(zlib.crc32(struct.pack('<III', n, u, 0)))
def hdr_crc(h):
h = bytearray(h); h[-4:] = bytes(4); return zlib.crc32(h)
def blocks(d):
@L422Y
L422Y / Mass cancel Amazon Subscribe and Save.md
Last active October 7, 2026 22:46
Mass cancel Amazon Subscribe and Save
  1. Open your subscriptions page:
https://www.amazon.com/auto-deliveries/subscriptionList?shipId=mpkmmwlssrkq&ref_=mys_nav_op_D
  1. Paste into devtools console
  2. Wait a few moments, and then refresh/repeat for any additional pages
  3. Confirm by checking to see if you've received cancellation emails
@julienma
julienma / mini-zb2gs_switch_detached-relay-mode.yaml
Last active October 7, 2026 22:45
Home Assistant blueprint for Sonoff MINI-ZB2GS & MINI-ZB2GS-L detached relay mode
blueprint:
name: Sonoff MINI-ZB2GS / MINI-ZB2GS-L detached relay mode
description: >
Use the Zigbee2MQTT device trigger payload (toggle_l1 / toggle_l2).
If relay is OFF: turn relay ON, wait briefly, then turn target ON.
If relay is ON: toggle target.
domain: automation
author: Adapted for MINI-ZB2GS
input:

Disable:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

Enable:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>Rebane's Discord Colored Text Generator</title>
<meta charset="UTF-8">
<meta name="description" content="Rebane's Discord Colored Text Generator">
<meta name="author" content="rebane2001">
<meta content="#5865F2" name="theme-color">
<script id="discord:component-embed" type="application/json">
@deonna
deonna / ai-design-tells-prompt.md
Last active October 7, 2026 22:35
The prompt that removes 15 AI design tells (from Impeccable's slop catalog)

The prompt that removes 15 AI design tells

Paste this into Claude Code, Cursor, Codex, Lovable, Bolt, or whatever you build with. It has your agent install Impeccable (free and open source) and run it, then fix the 15 tells.

First, set up Impeccable, a free, open-source design skill for AI coding agents (github.com/pbakaus/impeccable, Apache 2.0). If you can run terminal commands:

1. From the project root, run: npx impeccable install --scope=project
   If it asks which tools to install for, pick the one you're running in.
2. Run /impeccable init so it records who the site is for and how it should feel. If the /impeccable command isn't available until I restart you, tell me and keep going with step 3.
@peteretelej
peteretelej / Add-Old-Repo-Github.md
Last active October 7, 2026 22:33
Add old code project to github with correct timestamps

How to add an Old Project to GitHub While Retaining Timestamps for old changes

This guide will help you create a new Git repository from an existing project while preserving the original file modification timestamps. This way, your commit history will reflect the chronological changes made to the project.

Follow these steps: (needs bash & git)

Steps

1. Initialize the Repository

OpenSimplexNoise noise;
int numFrames = 100;
int margin = 50;
int m;
class Line{
float lr;
@GuardianLiarus
GuardianLiarus / uninstall_lsfg_vk.sh
Created September 28, 2026 18:26
LSFG-VK Uninstaller script
#!/bin/bash
# List of files to remove
FILES=(
"$HOME/.local/share/vulkan/implicit_layer.d/VkLayer_LSFGVK_frame_generation.json"
"$HOME/.local/share/vulkan/implicit_layer.d/VkLayer_LSFGVK_frame_generation.x86.json"
"$HOME/.local/share/icons/hicolor/256x256/apps/gay.pancake.lsfg-vk-ui.png"
"$HOME/.local/share/applications/gay.pancake.lsfg-vk-ui.desktop"
"$HOME/.local/lib/liblsfg-vk-layer.x86.so"
"$HOME/.local/lib/liblsfg-vk-layer.so"
@btoone
btoone / curl.md
Last active October 7, 2026 22:10
A curl tutorial using GitHub's API

Introduction

An introduction to curl using GitHub's API.

The Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin